﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EquipSecs300
{
    public class UtilitiesSundry
    {
        public static IDictionary CopyDictionary(IDictionary original)
        {
            IDictionary copied = (IDictionary)Activator.CreateInstance(original.GetType());

            foreach (DictionaryEntry entry in original)
            {
                copied.Add(entry.Key, entry.Value);
            }

            return copied;
        }
    }
}
